package com.csu.express.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.csu.express.dao.FeedbackMapper;
import com.csu.express.pojo.FeedbackPojo;
import com.csu.express.service.FeedbackService;

@Service
public class FeedbackServiceImpl implements FeedbackService
{
    @Autowired
    private FeedbackMapper feedbackMapper;

    @Override
    public int addFeedback(FeedbackPojo feedbackPojo)
    {
        feedbackPojo.setCreateTime(new Date());
        feedbackMapper.add(feedbackPojo);
        return 1;
    }

    @Override
    public List<FeedbackPojo> getFeedbackListByCellPhone(String cellPhone, int start, int rows)
    {
        return feedbackMapper.getFeedbackListByCellPhone(cellPhone, start, rows);
    }

}
